package com.to8to.autotask.sendmsg;

import com.to8to.crm.common.ThriftClientFactory;
import com.to8to.msgcenter.thrift.MsgCenterService;

public class BeanUtil {
	public static MsgCenterService.Iface msgCenterService = (MsgCenterService.Iface) ThriftClientFactory
			.getClient(MsgCenterService.class);

	// public static MsgCenterService.Iface msgCenterService =
	// (MsgCenterService.Iface) com.to8to.kitt.client.ThriftClientFactory
	// .getClient(MsgCenterService.class, "192.168.1.99", 31016,
	// Integer.MAX_VALUE, null);

	public static MsgCenterService.Iface getMsgCenterService() {
		if (msgCenterService == null) {
			msgCenterService = (MsgCenterService.Iface) ThriftClientFactory
					.getClient(MsgCenterService.class);

			// msgCenterService = (MsgCenterService.Iface)
			// com.to8to.kitt.client.ThriftClientFactory
			// .getClient(MsgCenterService.class, "192.168.1.99", 31016,
			// Integer.MAX_VALUE, null);
		}
		return msgCenterService;
	}
}
